AreaConfig = function(){
	this.defaults={// 默认form元素类型为textfield
		xtype : "textfield",// 默认类型为textfield
		width : 150 // 默认宽度
	};
	
	this.fields0=["name","value"];
	this.data0=[];
	this.data0[this.data0.length]=['Create','C'];
	this.data0[this.data0.length]=['Search','S'];
	this.data0[this.data0.length]=['Result','R'];
	this.data0[this.data0.length]=['Detail','D'];
	this.data0[this.data0.length]=['Modify','M'];
	this.store0 = new Ext.data.SimpleStore({
	    fields: this.fields0,
		data:this.data0}
	);
	
	this.items=[];
	this.items[0]={
	   xtype:'multicombo',
	   width:250,
	   store: this.store0,
	   valueField :"value",
	   displayField: "name",
	   labelSeparator:'：',
	   displaySeparator:';',
	   valueSeparator:'',
	   mode: 'local',
	   value:'CD',
	   forceSelection: true,
	   hiddenName:'test',
	   editable: true,
	   triggerAction: 'all',
	   allowBlank:true,
	   emptyText:'请选择',
	   fieldLabel: '多选下拉ComBo'
	};
	this.buttons=[];
	this.buttons[0]={
		text : '提交',
		type : 'submit',
		handler : function() {
			alert(areaConfig.items[0].value());
		}
	};
	
	this.panelConfig = {
		height : 100,// 表单面板的高度
		width : 400,// 表单面板的宽度
		labelWidth : 120,// 字段标签宽度
		labelAlign : "right",// 字段标签对齐方式
		fileUpload: true,//支持文件上传
		defaults:this.defaults,
		items :this.items,		
		buttons : this.buttons
	};

};

var areaConfig =new AreaConfig();
var formPanel = new Ext.FormPanel(areaConfig.panelConfig);

Ext.onReady(function(){formPanel.render("multicombo-div");});